class Example:
    def __init__(self, value,name):
        self.__value = value
        self.name = name
        print(self.__value)
        print(self.name+'    -----这是创建对象时生成-----')

    def __private_method(self):

        print("This is a private method 2.")

    def public_method(self,age):
        self.age = age
        print("This is a public method 1.",self.age)
        self.__private_method()

example = Example(666,'Jane')

